package com.yhgarden.bbs.service.api.system;

import com.yhgarden.bbs.entity.system.Role;
import com.yhgarden.bbs.entity.system.UserRole;
import com.yhgarden.bbs.entity.vo.role.UserIdRoleIdsVo;
import com.yhgarden.bbs.model.response.BaseResponse;

import javax.servlet.http.HttpSession;

public interface RoleService {

    BaseResponse createOrUpdate(HttpSession session, Role role) throws Exception;

    BaseResponse handleUserRole(UserIdRoleIdsVo userIdRoleIdsVo) throws Exception;

    BaseResponse getById(String id);

    BaseResponse getByPid(String pid);

    BaseResponse getByUserId(String userId);

    BaseResponse getByIdMoreDetail(String id);

    BaseResponse query(Role role);

    BaseResponse queryForList(Role role);

    BaseResponse queryMoreDetail(Role role);

    BaseResponse delete(String id);

}
